package com.jscq.stuDetail.client;

import com.atguigu.yygh.model.user.StudentDetail;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("service-user")
@Repository
public interface StuDetailFeignClient {

    @GetMapping("/api/user/studentDetail/auth/getByStuCode/{stuCode}")
    public StudentDetail getStuDetail(@PathVariable("stuCode") String stuCode);

    //根据value 查询
    @GetMapping("/admin/cmn/dict/getName/{value}")
    public String getName(@PathVariable("value") String value);
}
